package com.ymh.spring.advance.config;

import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.ymh.spring.advance.service.AirConditioner;
import com.ymh.spring.advance.service.impl.GreeConditioner;
import com.ymh.spring.advance.service.impl.MideaConditioner;
/**
 * 
 * <h4>项目名称：git_ssm_advance</h4>
 * <h5>名称：ConditionerConfig</h5> 
 * <h5>描述：包扫描的JavaConfig配置</h5><br/>
 * <h5>创建时间：2017年11月6日 下午3:57:17</h5> 
 * <h5>版权所有：深圳市启明星电子商务有限公司</h5>
 * @author aivin
 * @version 1.0.0
 */
@Configuration
public class AirConditionerConfig {
	
//	@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
	@Bean(name="airCond")
	@Qualifier(value="midea")
//	@Primary
	public AirConditioner mideaConditioner(){
		return new MideaConditioner();
	}

	//	@Scope(value=ConfigurableBeanFactory.SCOPE_SINGLETON)
	@Bean(name="airCond")
	@Qualifier(value="gree")
	public AirConditioner greeConditioner(){
		return new GreeConditioner();
	}
	

}
